using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class wxfj : MonoBehaviour
{
  public float health;
  public float Diedtime;
  public int aa;
    public GameObject fj;
    // Start is called before the first frame update
    void Start()
    {

    }

    // Update is called once per frame
    void Update()
    {
        if (health < -1000)
        {
            font.cc -= aa;
            Destroy(gameObject, Diedtime);
        }

        if (health < 10)
        {
            font.cc += 1;
            Destroy(gameObject, Diedtime);
        }
    }
}
